<template>
	<view class="title">
		<view class="title-line" v-if="line">
		</view>
		<view class="title-content" :style="{'color':color,'backgroundColor':bgColor,'fontSize':fontSize}">
			{{text}}
		</view>
	</view>
</template>

<script>
	export default {
		name: "typeTitle",
		props: {
			line:{
				type:Boolean,
				default: true,
			},
			text: {
				type: String,
				default: ""
			},
			bgColor: {
				type: String,
				default: "#ffffff"
			},
			color: {
				type: String,
				default: "#000000"
			},
			fontSize: {
				type: String,
				default: "18px"
			},
			

		},
		data() {
			return {

			};
		}
	}
</script>

<style scoped lang="scss">
	.title {
		position: relative;
		display: flex;
		flex-direction: row;
		align-items: center;
		padding: 12px 10px;
		font-weight: normal;
		background-color: #fff;

		&-line {
			width: 4px;
			height: 12px;
			border-radius: 10px;
			margin-right: 6px;
			background-color: #2979ff;
		}

		&-content {
			font-size: 18px;
		}
	}
</style>